//
//  PortOutViewController.m
//  CocoaSynth
//
//  Created by Thomas Dupont on 19/02/10.
//  Copyright 2010 Apple Inc. All rights reserved.
//

#import "PortOutViewController.h"

#import "PortOutProtocol.h"
#import "PortView.h"
#import "PortOutView.h"

@implementation PortOutViewController

@synthesize model;

- (id)initWithPortOut:(id<PortOutProtocol>)aPortOut atPoint:(NSPoint)thePoint
{
	if (self = [super init]) {
		model = aPortOut;
		PortView* portView = [[PortOutView alloc] initWithFrame:NSMakeRect(thePoint.x, thePoint.y, 20, 20)];
		[portView setController:self];
		self.view = portView;
	}
	return self;
}

- (void)portSelected
{
	[module selectPortOut:self];
}

@end
